<script setup>
import { inject } from 'vue'
import Son from "./Son.vue"
const car = inject('car')
</script>

<template>
    <h1 @click="car.name='宝马M4';car.price='100W'">我是子组件 ， {{car}}</h1>
    <Son />
</template>
